package com.onec.service.api.exception;

import com.onec.service.api.enums.ResultCodeEnum;
import com.onec.service.api.enums.error.GatewayEnum;


/**
 * @author onec
 */
public class GatewayException extends BaseException {

    public GatewayException(Integer code, String message) {
        super(code, message);
    }

    public GatewayException(GatewayEnum gatewayEnum) {
        super(gatewayEnum.getCode(), gatewayEnum.getMessage());
    }

    public GatewayException(ResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getCode(), resultCodeEnum.getMessage());
    }
}
